#导包
import requests
#发送请求方法一
#res= requests.get(url="http://127.0.0.1/index.php/Home/Goods/search.html",
      #            params={"q":"iPhone"})
#发送请求方法二
res= requests.get(url="http://127.0.0.1/index.php/Home/Goods/search.html?q=iPhone")
#查看响应数据
print(res.text)